<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<title><ui:insert name="page-title">~:::E-Register Design:::~</ui:insert></title>
	<h:outputStylesheet name="style.css" library="css" />
	<meta http-equiv="content-type" content="text/html;charset=UTF-8"
		charset="UTF-8" />
</h:head>
<h:body dir="#{commonMB.dir}">
	<f:view encoding="utf-8" locale="#{commonMB.locale}">

		<ui:insert name="header-content">
			<h:form>
				<h:panelGrid columns="1" cellpadding="10" id="langGrid">
					<p:commandLink ajax="false" value="Arabic" rendered="#{commonMB.locale eq 'en'}" action="#{commonMB.changeLang('ar')}" update="langGrid"/>				
					<p:commandLink ajax="false"  value="English" rendered="#{commonMB.locale eq 'ar'}" action="#{commonMB.changeLang('en')}" update="langGrid"/>
				</h:panelGrid>
			</h:form>
		</ui:insert>		


		<ui:insert name="main-content"></ui:insert>

		<ui:insert name="footer-content">
			<h:form>
				<h:panelGrid columns="1" cellpadding="10">
					<p:spacer height="10" />
					<p:commandButton ajax="false" value="#{cmnMsgs.Back}" action="/pages/home.jsf" />
				</h:panelGrid>
			</h:form>
		</ui:insert>
		
		

	</f:view>
</h:body>
</html>
